import { NewsService } from "../NewsService";
import { Service, Inject } from "typedi";
import { NewsDao } from "../../dao/NewsDao";

@Service()
export class NewsServiceImpl implements NewsService{
	
	@Inject()
	private newsDao: NewsDao;
	
	public async getNews(): Promise<Array<Object>> {
		return this.newsDao.getNewsDao();
	}
}